/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package earthdawnnet.events.server;

import earthdawnnet.server.IEarthdawnServer;

/**
 *
 * @author Andreas Franek
 */
public class LoginEvent extends ServerEvent
{
    private String name;
    public LoginEvent(String clientName)
    {
        name = clientName;
    }
    
    public String getEventName()
    {
        return "LoginEvent";
    }
    
    public String getName()
    {
        return name;
    }

    public void apply(IEarthdawnServer eds)
    {
        eds.login(getSender(), name);
    }
}
